R Programming quiz

                                                                                                            

Answer the all questions


1.
What is the mode of ‘a’ in the following R code?
a <- c  b <- c(TRUE, TRUE)
a.Numeric
b.Character
c.Integer
d.Logical

2.R files has an extension ______
a..R
b..S
c..Rp
d..c

3.Full Form of GUI is ___________________
a.Guided User Interface
b.Graphical User Interface
c.Guided Used Interface
d.Graphical User Interval

4In which IDE we can interact with R?
a.R studio
b.Console
c.GCC
d.Power shell

5.R is mostly used in ______________
a.Problem solving
b.Statistics
c.Probability
d.All of the mentioned

6.What is the meaning of “<-“?
a.Functions
b.Loops
c.Addition
d.Assignment

7.What is the meaning of the following R function?
prinprint( sqrt(2) )t( sqrt(2) )
a.1.414314
b.1.414214
c.Error
d.14.1414

8.Point out the correct statement?
a.Blocks are evaluated until a new line is entered after the closing brace
b.Single statements are evaluated when a new line is typed at the start of the syntactically complete statement
c.The if/else statement conditionally evaluates two statements
d.Break will execute a loop while a condition is true

9.Which of the following R syntax is correct for while loop?
a.while ( statement1 ) statement2
b.while ( statement1 ) else statement2
c.while ( statement1 ) do statement2
d.while ( statement2 ) doelse statement2

10._______ is used to break the execution of a loop.
a.next
b.skip
c.break
d.delete

11.Which of the following should be preferred for evaluation from list of alternatives?
a.subsett
b.eval
c.switch
d.set

Post a Comment

0 Comments